package com.pojo;

public class User {
    /**
     * 用户编号
     */
    private String  id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 密码
     */
    private String password;
    /**
     * 是否为管理员
     */
    private boolean isAdmin;

    public User() {
    }

    public User(String id, String name, String paassword, boolean isAdmin) {
        this.id = id;
        this.name = name;
        this.password = paassword;
        this.isAdmin = isAdmin;
    }

    @Override
    public String toString() {
        return id+"\t"+name+"\t"+password;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String paassword) {
        this.password = paassword;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }
}
